package com.itheima_03;

public class VolatileTest01 {
    public static void main(String[] args) throws InterruptedException {
        BoyThread boy=new BoyThread();
        GrilThread gril = new GrilThread();
        gril.start();

        Thread.sleep(3000);
        boy.start();

    }
}
